package com.six.backend.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @Author: skyler
 * @Date: 2021/11/4 15:16
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ToString
@Builder
@ApiModel("会议")
public class Conference {
    @NotNull
    @ApiModelProperty("会议id")
    private Integer id;

    @NotNull
    @ApiModelProperty("会议主持人")
    private String hostAccount;

    @NotNull
    @ApiModelProperty("会议主持人姓名")
    private String hostAccountName;

    @NotNull
    @ApiModelProperty("会议撰写人")
    private String summaryWriterAccount;

    @NotNull
    @ApiModelProperty("会议名称")
    private String name;

    @Future
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("会议开始时间")
    private Date startTime;

    @Future
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("会议结束时间")
    private Date endTime;

    @NotNull
    @ApiModelProperty("会议简介")
    private String introduction;

    @ApiModelProperty("会议状态")
    private Integer status;

    @ApiModelProperty("会议关键字")
    private String key;

    @ApiModelProperty("纪要名称")
    private String summaryName;

    @ApiModelProperty("主题")
    private Theme theme;

    @ApiModelProperty("参会人员")
    private List<User> userList;

}
